package com.sanjiayi.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@ToString
@ApiModel("发布动态请求参数")
public class MomentPublishDTO {
    
    @ApiModelProperty("动态内容")
    @NotBlank(message = "动态内容不能为空")
    @Size(max = 500, message = "动态内容不能超过500字")
    private String content;
    
    @ApiModelProperty("图片URL列表")
    private List<String> images;
    
    @ApiModelProperty("视频URL")
    private String videos;
    
    @ApiModelProperty("话题")
    @Size(max = 50, message = "话题不能超过50字")
    private String topic;
} 